package com.dd.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

public class Dept implements Serializable {

    @Serial
    private static final long serialVersionUID = -2353519444675551844L;
    //用于存储ID信息
    private int id;

    //用于存储名称信息
    private String name;

    List<Emp> empList;

    public List<Emp> getEmpList() {
        return empList;
    }

    public void setEmpList(List<Emp> empList) {
        this.empList = empList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "t_Dept{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
